
package com.sasis.dao;

import java.util.List;

import com.sasis.dao.Dao;
import com.sasis.model.WorkLog;

public interface WorkLogDao extends Dao {

    /**
     * Retrieves all of the workLogs
     */
    public List getWorkLogs(WorkLog workLog);

    /**
     * Gets workLog's information based on primary key. An
     * ObjectRetrievalFailureException Runtime Exception is thrown if 
     * nothing is found.
     * 
     * @param id the workLog's id
     * @return workLog populated workLog object
     */
    public WorkLog getWorkLog(final Integer id);

    /**
     * Saves a workLog's information
     * @param workLog the object to be saved
     */    
    public void saveWorkLog(WorkLog workLog);

    /**
     * Removes a workLog from the database by id
     * @param id the workLog's id
     */
    public void removeWorkLog(final Integer id);
}

